package by.euanpa.android.grodnobusstop.content.provider.contract;

import android.net.Uri;
import android.provider.BaseColumns;

public class Contract {

	public static final String AUTHORITY = "by.euanpa.android.grodnobusstop.content.provider.BusStopContentProvider";
	private static final String SCHEME = "content://";
	
	public static Uri getUri(){
		return null;
	}
	
	public static class BusStopColumns implements BaseColumns{
		
		public static final String TABLE_NAME = "busstop";
		public static final String CONTENT_TYPE = "vnd.android.cursor.dir/busstop";
		
		public static final String ID = _ID;
		public static final String NAME = "name";
		public static final String LONGITUDE = "longitude";
		public static final String LATITUDE = "latitude";
		
		public static Uri getUri(){
			return Uri.parse(SCHEME + AUTHORITY + "/" + TABLE_NAME);
		}
	}
	
	public static class RouteColumns implements BaseColumns{
		public static final String TABLE_NAME = "route";
		public static final String CONTENT_TYPE = "vnd.android.cursor.dir/route";

		public static final String ID = _ID;
		public static final String NAME = "name";
		public static final String NUMBER = "number";
		
		public static Uri getUri(){
			return Uri.parse(SCHEME + AUTHORITY + "/" + TABLE_NAME);
		}
	}
	
	public static class RelationColumns implements BaseColumns{
		public static final String TABLE_NAME = "relation";
		public static final String CONTENT_TYPE = "vnd.android.cursor.dir/relation";
		
		public static final String ID = _ID;
		public static final String BUS_STOP_ID = "busstopid";
		public static final String ROUTE_ID = "routeid";
		public static final String TIME_TABLE_SATURDAY = "timetableseturday";
		public static final String TIME_TABLE_WORKDAY = "timetableworkday"; 
		public static final String TIME_TABLE_MONDAY = "timetablemonday"; 
		
		public static Uri getUri(){
			return Uri.parse(SCHEME + AUTHORITY + "/" + TABLE_NAME);
		}
	}
}